package com.demo.service.impl;

import com.demo.dao.IRolePermissionDao;
import com.demo.entity.RolePermission;
import com.demo.service.IRolePermissionService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RolePermissionServiceImpl implements IRolePermissionService {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private IRolePermissionDao dataDao;
    @Override
    public int addBatch(List<RolePermission> list) {
        return dataDao.addBatch(list);
    }

    @Override
    public int deleteByRoleId(String roleId) {
        return dataDao.deleteByRoleId(roleId);
    }
}
